Auto merge of #5209 - matklad:no-way-we-havent-had-a-test-for-this, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 20 Mar 2018 00:38:44 +0000 (00:38 +0000)
committerbors <bors@rust-lang.org>
Tue, 20 Mar 2018 00:38:44 +0000 (00:38 +0000)
commitd10ec661b06420654bbc4ed0ccd32295698aa1dc
tree6499cb7cf0f64b966d9f26f6c8b8d5a90d4bcc0a
parente4da2d4b51211815596b1fdabbb3f6171457dc65
parentdeb1c1e15c972d713e723088516b02a23e9bac8e
Auto merge of #5209 - matklad:no-way-we-havent-had-a-test-for-this, r=alexcrichton

Fix regression when passing arguments to subcommands

closes https://github.com/rust-lang/cargo/issues/5208

`.args(&args[1..])` was copied directly from the docopt implementation, but there, `args[0]` was the path to `cargo` and not the name of subcommand, ie, `args` were *original* arguments for Cargo as a whole.